package com.ctg.itrdc.imageconsole.common.exception;

public class ServiceException extends RuntimeException{

	private static final long serialVersionUID = 1L;
	
	private int errorCode;
	
	public ServiceException(String msg) {
		super(msg);
	}

	public ServiceException(int errorCode , String msg) {
		super(msg);
		this.setErrorCode(errorCode);
	}
	
	public ServiceException(String msg, Throwable cause) {
		super(msg, cause);
	}
	
	public ServiceException(int errorCode , String msg, Throwable cause) {
		super(msg, cause);
		this.setErrorCode(errorCode);
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
	
}
